function render(str, data) {
}

const template = `<p>this is {{name}}</p>`

const data = {
    name: '张三'
}

render(template, data)